module.exports = (sequelize, Sequelize) => {
    const Login = sequelize.define("user",
    {
        user_passwd: {
            type: Sequelize.STRING
        },
        user_mail: {
            type: Sequelize.STRING,
            primaryKey: true
        }
    }, {
        indexes: [{
            unique: true,
            fields: ['user_mail']
        }]
    }, {
        freezeTableName: true,
        timestamps: false,
    });

    Login.removeAttribute('id');
    Login.removeAttribute('createdAt');
    Login.removeAttribute('updatedAt');
    return Login
}